package org.webbase.report.dao.hibernate;

import java.util.List;

import org.hibernate.Criteria;
import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Repository;
import org.webbase.report.dao.FormColumnDao;
import org.webbase.report.pojo.FormColumn;
import org.webbase.system.dao.hibernate.BaseDaoImpl;

@Repository
public class FormColumnDaoImpl extends BaseDaoImpl<FormColumn> implements FormColumnDao {

	@Override
	public List<FormColumn> findByFormId(String formId){
		Criteria criteria=getCriteria();
		criteria.add(Restrictions.eq("formId",formId));
		return criteria.list();
	}
	
}
